CHANGE MESH FROM MEMBLOCK
This command will change a mesh from a memblock.
CHANGE MESH FROM MEMBLOCK Mesh Number,Memblock Number
Mesh Number
Integer
The mesh number
Memblock Number
Integer
The memblock number
This command does not return a value.
This command is similar to MAKE MESH FROM MEMBLOCK, and skips the mesh creation step to make this command faster. You must ensure the mesh uses the same data structure as the memblock or this command will produce undesirable results. The specified values must be integer values and the source resource must exist or the command will fail. The memblock stores the data as described in the respective memblock construction command.
MeshNumber=1
load mesh "mesh.x",MeshNumber
MemblockNumber=1
MAKE MEMBLOCK FROM MESH MemblockNumber, MeshNumber
MAKE MESH FROM MEMBLOCK MeshNumber, MemblockNumber
CHANGE MESH FROM MEMBLOCK MeshNumber, MemblockNumber
if MEMBLOCK EXIST(MemblockNumber)=1 then DELETE MEMBLOCK MemblockNumber
do
loop
end
MEMBLOCKS Commands Menu
Index